package cn.yhbk.web.modules.manager.Service;

import cn.yhbk.web.modules.manager.Pojo.DTO.GpaDetails.AddDetails;
import cn.yhbk.web.modules.manager.Pojo.DTO.GpaDetails.DetailsResP;
import cn.yhbk.web.modules.manager.Pojo.Entity.GpaCheckDetails;
import cn.yhbk.web.modules.manager.Pojo.VO.Details.UpdateDetail;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 有何不可
 * @since 2023-09-10
 */
public interface IGpaCheckDetailsService extends IService<GpaCheckDetails> {

    boolean addDetails(Map<Long, List<AddDetails>> details,Long checkId);

    List<DetailsResP> getDetailsByCheckIds(List<Long> checkIds);

    boolean delDetailByCheckId(Long checkId);

    boolean pass(Long detailId);

    boolean refuse(Long detailId, String refuseReason);

    boolean updateDetail(Long detailId,UpdateDetail updateDetail);

    boolean judgeDetailIdStu(Long adminId, Long detailId);
}
